package com.oig.sys.msg.dto;

import com.oig.common.validator.GroupAdd;
import com.oig.common.validator.GroupEdit;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema
@Data
public class ExportTaskDto {

	@Schema(description = "id")
	private Integer id;
	@Schema(description = "文件导出任务名称")
	@NotEmpty(message = "参数错误,文件导出任务名称不能为空", groups={GroupAdd.class, GroupEdit.class})
	private String name;
	@Schema(description = "状态 01-正在生成文件 02-已完成 03-已下载")
	private String status;
	@Schema(description = "文件地址")
	private String fileUrl;
	@Schema(description = "文件名")
	@NotEmpty(message = "参数错误,文件名不能为空", groups={GroupEdit.class})
	private String fileName;
	@Schema(description = "文件id")
	@NotEmpty(message = "参数错误,文件id不能为空", groups={GroupEdit.class})
	private String fileId;

	@Schema(description = "任务发布人id")
	@NotNull(message = "参数错误,任务发布人不能为空", groups={GroupAdd.class})
	private Integer createUserId;
	@Schema(description = "任务发布人")
	@NotEmpty(message = "参数错误,任务发布人不能为空", groups={GroupAdd.class})
	private String createUserName;

	@Schema(description = "所属租户id")
	@NotNull(message = "参数错误,所属租户id不能为空", groups={GroupAdd.class})
	private Integer tenantId;
	@Schema(description = "所属租户名称")
	@NotEmpty(message = "参数错误,所属租户名称不能为空", groups={GroupAdd.class})
	private String tenantName;



}
